// 获取个人信息
import httpInstance from './http'

// 1、获取个人信息
export const getPersonInfoApi = (id, roleType) => {
    return httpInstance.get('/person-info', {
        params: { id, roleType }
    })
}

// 2、头像上传
export const uploadFileApi = (data) => {
    return httpInstance.post('/upload-file', {
        data
    },{
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}

// 3、保存编辑
export const saveEditApi = (form) => {
    return httpInstance.post('/save_edit', {
        data: form
    })
}